package edu.xjdx.os.service.Impl;

import edu.xjdx.os.domain.Dictionary;
import edu.xjdx.os.domain.Goods;
import edu.xjdx.os.mapper.DictionaryMapper;
import edu.xjdx.os.mapper.GoodsMapper;
import edu.xjdx.os.service.DictionaryService;
import edu.xjdx.os.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictionaryServiceImpl implements DictionaryService {

    @Autowired
    private DictionaryMapper dictionaryMapper;

    @Override
    public List<Dictionary> findByName(String name) {
        return dictionaryMapper.findByName(name);
    }

    @Override
    public Dictionary findByValue(String value) {
        return dictionaryMapper.findByValue(value);
    }

    @Override
    public Dictionary findById(String id) {
        return dictionaryMapper.selectByPrimaryKey(id);
    }
}
